public class Student {
    public Student(Integer age,String name){
        this.age=age;
        this.name=name;
    }
    public Student(){

    }
    private Student(String name){
        this.name=name;
    }
    protected Student(Integer age){
        this.age=age;
    }
    private Integer age;

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String name;

    public String gender;

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }

    private void sleep(String name) throws RuntimeException,Exception{
        System.out.println("睡觉");
    }
}
